home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / upc12bs1.zip / UUCICO / modem.h < prev    next >
C/C++ Source or Header  |  1993-10-03  |  3KB  |  96 lines

  1. #ifndef MODEM_H
  2. #define MODEM_H
  3.  
  4. /*--------------------------------------------------------------------*/
  5. /*    m o d e m . h                                                   */
  6. /*                                                                    */
  7. /*    Prototypes for high level modem support routines                */
  8. /*--------------------------------------------------------------------*/
  9.  
  10. /*--------------------------------------------------------------------*/
  11. /*    Changes Copyright (c) 1989-1993 by Kendra Electronic            */
  12. /*    Wonderworks.                                                    */
  13. /*                                                                    */
  14. /*    All rights reserved except those explicitly granted by the      */
  15. /*    UUPC/extended license agreement.                                */
  16. /*--------------------------------------------------------------------*/
  17.  
  18. /*
  19.  *    $Id: modem.h 1.9 1993/10/03 20:44:22 ahd Exp $
  20.  *
  21.  *    Revision history:
  22.  *    $Log: modem.h $
  23.  * Revision 1.9  1993/10/03  20:44:22  ahd
  24.  * Move slowWrite to script.c
  25.  *
  26.  * Revision 1.8  1993/09/29  04:56:11  ahd
  27.  * Suspend port by port name, not modem file name
  28.  *
  29.  * Revision 1.7  1993/09/28  01:40:29  ahd
  30.  * Configurable timeout for conversation start up
  31.  *
  32.  * Revision 1.6  1993/09/20  04:53:57  ahd
  33.  * TCP/IP support from Dave Watt
  34.  * 't' protocol support
  35.  * OS/2 2.x support (BC++ 1.0 for OS/2 support)
  36.  *
  37.  * Revision 1.5  1993/04/11  00:36:13  ahd
  38.  * Global edits for year, TEXT, etc.
  39.  *
  40.  * Revision 1.4  1992/11/28  19:53:22  ahd
  41.  * Make callin time parameter const
  42.  *
  43.  * Revision 1.3  1992/11/18  03:50:17  ahd
  44.  * Move check of call window to avoid premature lock file overhead
  45.  *
  46.  */
  47.  
  48. /*--------------------------------------------------------------------*/
  49. /*                           Defined types                            */
  50. /*--------------------------------------------------------------------*/
  51.  
  52. typedef enum {
  53.    MODEM_FIXEDSPEED,
  54.    MODEM_VARIABLEPACKET,
  55.    MODEM_LARGEPACKET,
  56.    MODEM_DIRECT,
  57.    MODEM_CD,
  58.    MODEM_LAST
  59.    } MODEM_FLAGS;
  60.  
  61. /*--------------------------------------------------------------------*/
  62. /*                        Function prototypes                         */
  63. /*--------------------------------------------------------------------*/
  64.  
  65. CONN_STATE callup(void );
  66.  
  67. CONN_STATE callin( const time_t exit_time );
  68.  
  69. CONN_STATE callhot( const BPS speed );
  70.  
  71. void shutDown( void );
  72.  
  73. KEWSHORT GetGPacket( KEWSHORT maxvalue, const char protocol );
  74.  
  75. KEWSHORT GetGWindow( KEWSHORT maxvalue, const char protocol );
  76.  
  77. boolean getmodem( const char *brand);
  78.  
  79. /*--------------------------------------------------------------------*/
  80. /*                       Environment variables                        */
  81. /*--------------------------------------------------------------------*/
  82.  
  83. extern boolean  bmodemflag[MODEM_LAST];
  84. extern char     *M_device;
  85. extern KEWSHORT M_fPacketSize;
  86. extern KEWSHORT M_fPacketTimeout;
  87. extern KEWSHORT M_gPacketTimeout;
  88. extern KEWSHORT M_MaxErr;
  89. extern KEWSHORT M_PortTimeout;
  90. extern KEWSHORT M_startupTimeout;       /* pre-procotol exchanges        */
  91. extern KEWSHORT M_tPacketTimeout;
  92. extern KEWSHORT M_xfer_bufsize;
  93. extern KEWSHORT M_charDelay;
  94.  
  95. #endif
  96.